﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Hosting.Common
{
    /// <summary>
    /// 有Id和Name的基本对象
    /// </summary>
    public class IdName : GuidOnly, IHasName
    {
        public IdName() { }
        public IdName(string name) : this()
        {
            Name = name;
        }
        public IdName(Guid id, string name)
        {
            Id = id;
            Name = name;
        }
        /// <summary>
        /// 名称
        /// </summary>

        public string? Name { get; set; }
    }
}
